package com.weilian.androidgames.chicken;

import android.graphics.Color;

import com.weilian.androidgames.chicken.logic.PetChicken;
import com.weilian.androidgames.chicken.logic.Player;
import com.weilian.androidgames.framework.Game;
import com.weilian.androidgames.framework.Graphics;
import com.weilian.androidgames.framework.Screen;

public class PlayScreen extends Screen {

	private PetChicken pet;
	private Player player;
	public PlayScreen(Game game) {
		super(game);
		
		//initialize new pet and player here. Change to load from somewhere next time
		player = Player.CreateNewPlayer();
		pet = PetChicken.CreateNewPet();
		
	}

	@Override
	public void update(float deltaTime) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void present(float deltaTime) {
		Graphics g = game.getGraphics();
		
		drawBackground(g);
		drawUserInterface(g);
		drawPet(g);
		
	}
	
	private void drawBackground(Graphics g) {
		for(int x = 0; x < 320; x ++) {
			for(int y = 0; y < 480; y++) {
				g.drawPixel(x, y, Color.BLUE);
			}
		}
	}
	
	private void drawUserInterface(Graphics g) {
		
	}
	
	private void drawPet(Graphics g) {
		
	}

	@Override
	public void pause() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void resume() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub
		
	}

}
